var yzm_btn = document.querySelector(".yzm-btn");
var phone_num = document.querySelector("#phone_num");
yzm_btn.addEventListener("click",function(){
    if(phone_num.value!=""){
            getYzm(yzm_btn);
            msg_box_open(msg_box_close);      
            img.setAttribute("src","../images/smile.png");
            msg_text.innerText = "发送成功!";
    }else{
        msg_box_open(msg_box_close);      
        img.setAttribute("src","../images/cry.png");
        msg_text.innerText = "请输入手机号";
    }
   
})

var back_btn = document.querySelector(".back-btn");

back_btn.addEventListener("click",function(){
    goBack();
})